package constant;

public class DSConstants {
    public static final String URL = "url";
    public static final String USER_NAME = "userName";
    public static final String USER_PASSWORD = "userPassword";
    public static final String TENANT_ID = "tenantId";
    public static final String TENANT_CODE = "tenantCode";
    public static final String EMAIL = "email";
    public static final String QUEUE = "queue";
    public static final String QUEUE_ID = "queueId";
    public static final String PHONE = "phone";
    public static final String STATE = "state";
    public static final String TOKEN = "token";
    public static final String DS = "dolphinscheduler";
    public static final String PROJECT_NAME = "projectName";
    public static final String DESCRIPTION = "description";
    public static final String SESSION_ID = "Sessionid";
    public static final String COOKIE = "Cookie";
    public static final String COOKIE_INFO = "securityConfigType=%s; sessionId=%s; language=zh_CN; sessionId=%s";
    public static final String SEARCH_VAL = "searchVal";
    public static final String TASK_DEFINITION_JSON = "taskDefinitionJson";
    public static final String TASK_RELATION_JSON = "taskRelationJson";
    public static final String LOCATIONS = "locations";
    public static final String NAME = "name";
    public static final String WORKFLOW_EXECUTION_TYPE = "executionType";
    public static final String GLOBAL_PARAMS = "globalParams";
    public static final String TIMEOUT = "timeout";
    public static final String RELEASE_STATE = "releaseState";
    //schedule
    public static final String SCHEDULE = "schedule";
    public static final String FAILURE_STRATEGY = "failureStrategy";
    public static final String WARNING_TYPE = "warningType";
    public static final String PROCESS_INSTANCE_PRIORITY = "processInstancePriority";
    public static final String WARNING_GROUP_ID = "warningGroupId";
    public static final String WORKER_GROUP = "workerGroup";
    public static final String ENVIRONMENT_CODE = "environmentCode";
    public static final String PROCESS_DEFINITION_CODE = "processDefinitionCode";

    public static final String EXEC_TYPE = "execType";

    public static final String START_NODE_LIST = "startNodeList";


    // -------------------- PATH -------------------
    public static final String LOGIN = "/login";

    public static final String PROJECT_SERVICE_PATH = "/projects";

    public static final String PROJECT_QUERY_PATH = "/projects?pageSize=%d&pageNo=%d&searchVal=%s";

    public static final String PROJECT_UPDATE_DELETE_PATH = "/projects/%d";

    public static final String WORKFLOW_QUERY_PATH = "/projects/%d/process-definition?pageSize=%d&pageNo=%d&searchVal=%s";

    public static final String TASK_CODE_GEN = "/projects/%d/task-definition/gen-task-codes?genNum=%d";

    //------------------------ workflow path --------------------
    public static final String WORKFLOW_VERIFY_NAME_PATH = "/projects/%d/process-definition/verify-name?name=%s";

    public static final String WORKFLOW_CREATE_PATH = "/projects/%d/process-definition";

    public static final String WORKFLOW_ONLINE_OFFLINE_PATH = "/projects/%d/process-definition/%d/release";

    //projects/18263166170656/schedules
    public static final String WORKFLOW_SCHEDULE_PATH = "/projects/%d/schedules";

    public static final String WORKFLOW_START_PATH = "/projects/%d/executors/start-process-instance";


    //------------------------ tenant path --------------------
    public static final String TENANT_VERIFY_CODE_PATH = "/tenants/verify-code?tenantCode=%s";
    public static final String TENANT_CREATE_PATH = "/tenants";

    public static final String TENANT_QUERY_PATH = "/tenants?pageSize=%d&pageNo=%d&searchVal=%s";



    //------------------------ user path --------------------
    public static final String USER_VERIFY_USER_NAME_PATH = "/users/verify-user-name?userName=%s";

    public static final String USER_CREATE_PATH = "/users/create";

    public static final String USER_QUERY_PATH = "/users/list-paging?pageSize=%d&pageNo=%d&searchVal=%s";

    public static final String SIGN_OUT = "/signOut";


    public static final String TASK_DEPEND_TYPE = "taskDependType";
    public static final String COMPLEMENT_DEPENDENT_MODE = "complementDependentMode";
    public static final String RUN_MODE = "runMode";
    public static final String START_PARAMS = "startParams";
    public static final String EXPECTED_PARALLELISM_NUMBER = "expectedParallelismNumber";
    public static final String DRY_RUN = "dryRun";
    public static final String SCHEDULE_TIME = "scheduleTime";
}
